﻿using System;
using System.Data;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using AnyOffice.Components;
using AnyOffice.DAL;

namespace AnyOffice.general.chatroom
{
    public partial class title : ModulePage
    { 
        protected void Page_Load(object sender, EventArgs e)
        {
            int sessionId = (Request.QueryString["session_id"] != null) ? int.Parse(Request.QueryString["session_id"]) : 0;
            this.ViewState["SessionId"] = sessionId;
            DataTable table = new ChatSessionsDao().SelectBySessionId(base.Conn, sessionId);
            if (table.Rows.Count > 0)
            {
                this.litNavTitle.Text = table.Rows[0]["SessionName"].ToString();
            }
        } 

    }
}
